#include<stdio.h>
#include<stdlib.h>

int _add(int a,int b)
{
  return a+b;
}
int _minus(int a,int b)
{
 return a-b;
}
int _muti(int a,int b)
{
  return a*b;
}

double divide(int a,int b)
{
  if(!b)
  {
  printf("Input Error\n");
  exit(1);
  }
  return (double)a/b;
}

int main()
{
  int a,b;
  char c;
  while(1)
  {
  scanf("%d%d",&a,&b);
  getchar();
  scanf("%c",&c);
  switch(c)
  {
  case '+':
  printf("%d\n",_add(a,b));break;
  case '-':
  printf("%d\n",_minus(a,b));break;
  case '*':
  printf("%d\n",_muti(a,b));break;
  case '/':
  printf("%f\n",divide(a,b));break;
  case '#':
  return 0;
  }
  }
  return 0;
}
